package com.xiaomili.halfsugar.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xiaomili.halfsugar.R;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/7/23 0023.
 */
public class LoginActivity extends FragmentActivity {

    @InjectView(R.id.iv_return)
    ImageView ivReturn;
    @InjectView(R.id.tv_login)
    TextView tvLogin;
    @InjectView(R.id.tb_login)
    Toolbar tbLogin;
    @InjectView(R.id.id_phone)
    ImageView idPhone;
    @InjectView(R.id.iv_pw)
    ImageView ivPw;
    @InjectView(R.id.tv_rem_pw)
    TextView tvRemPw;
    @InjectView(R.id.btn_dl)
    Button btnDl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.inject(this);
    }

    @OnClick({R.id.iv_return, R.id.tv_login, R.id.tv_rem_pw, R.id.btn_dl})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_return:
                finish();
                break;
            case R.id.tv_login:
                startActivity(new Intent(LoginActivity.this,RegisterActivity.class));
                break;
            case R.id.tv_rem_pw:
                break;
            case R.id.btn_dl:
                break;
        }
    }
}
